package response

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func Success(ctx *gin.Context, args ...Body) {
	var response = Body{
		Code: 200,
		Msg:  "操作成功",
		Data: Empty{},
	}
	response.Set(args)
	ctx.JSON(http.StatusOK, response)
}
